//
//  PageFlowMenuTableViewCellBase.h
//  MKUITestApp
//
//  Created by 苏尚进 on 2020/10/6.
//  Copyright © 2020 moon. All rights reserved.
//

#import <MKUI/MKUI.h>
#import "TestUIPageControl.h"
#import "Menu.h"
NS_ASSUME_NONNULL_BEGIN

@interface PageFlowMenuTableViewCellBase : MKUITableViewCellBase<UICollectionViewDelegate,MKUICollectionViewDelegatePageFlowLayout>
@property(nonatomic,strong) UIView *myContentView;
@property(nonatomic,strong) UIView *toolbarView;

@property(nonatomic,strong) MKUIFlowLayoutButton *refreshButton;
@property(nonatomic,strong) MKUIFlowLayoutButton *addButton;
@property(nonatomic,strong) MKUIFlowLayoutButton *removeButton;
@property(nonatomic,strong) MKUIFlowLayoutButton *scrollPreButton;
@property(nonatomic,strong) MKUIFlowLayoutButton *scrollNextButton;
@property(nonatomic,strong) MKUIFlowLayoutButton *autoScrollButton;
@property(nonatomic,strong) MKUIFlowLayoutConstraint *toolbarFlowLayoutConstraint;

@property(nonatomic,strong) MKUIFlowLayoutConstraint *flowLayoutConstraint;
- (id<MKUILayoutConstraintItemProtocol>)myContentLayoutConstraint;

@property(nonatomic,strong) MKUICollectionView *collectionView;
@property(nonatomic,strong) MKUICollectionViewPageFlowLayout *pageFlowLayout;
@property(nonatomic,strong) UIView<TestUIPageControlProtocol> *pageControl;
@property(nonatomic,strong) UIView *lineView;
- (void)layoutMyContentView;
- (CGSize)sizeMyContentViewThatFits:(CGSize)size;
- (void)reloadData;
- (void)reloadPageControl;
+ (Class)pageFlowLayoutClass;
+ (Class)menuCellClass;
- (UIEdgeInsets)sectionInsets;

- (void)onRefreshButton:(id)sender;
- (void)onAddButton:(id)sender;
- (void)onRemoveButton:(id)sender;
- (void)onScrollPreButton:(id)sender;
- (void)onScrollNextButton:(id)sender;
- (void)onAutoScrollButton:(id)sender;
- (UIScrollViewDecelerationRate)defalutUIScrollViewDecelerationRate;
@end

NS_ASSUME_NONNULL_END
